JSON-LD structured data for skill listings#8
Open
VisionaireLabs wants to merge 1 commit into
Open
Conversation
Emit schema.org SoftwareApplication structured data on each skill detail page so search engines can surface rich results. - lib/jsonLd.ts builds the markup from real catalog fields only - No aggregateRating/review and no install counts — we have no honest source, so they are deliberately absent - license emitted only for real SPDX ids; offers only when a real price exists (free/per-use/one-time); 0.0.0 pre-release version omitted Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds schema.org
SoftwareApplicationstructured data (JSON-LD) to every skill detail page (/skills/[slug]) so search engines can surface rich results.What
lib/jsonLd.ts—skillJsonLd(skill)builds the markup purely from reallib/skills.tscatalog fields.app/skills/[slug]/page.tsx— injects<script type="application/ld+json">into the page.Honesty (per repo rules)
aggregateRating/review— we have no real ratings, so the block is deliberately absent (avoids Google penalizing fabricated review markup).offersemitted only when a real price exists (free → price0; per-use/one-time → real USD amount). Unpriced skills get no offer.licenseemitted only for real SPDX identifiers;undeclared/unknown/proprietary/source-availableget none.softwareVersionomitted for the0.0.0pre-release sentinel.authortypedOrganizationfor first-party,Personotherwise.Verification
tsc --noEmitclean,eslintclean on both files.next buildsucceeds; all 277 skill pages prerender with valid JSON-LD.🤖 Generated with Claude Code